/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */

package com.sys.midware.hive.config;

/**
 * <b>ClassName:</b> BConfigVO.java <br/>
 * <b>Description:</b> 配置文件实体类 <br/>
 * <b>Date:</b> 2015年10月16日 下午3:55:42<br/>
 * 
 * @author mobing
 * @version
 */
public class BHiveConfig {
    /**
     * 节点名称，一般为业务库的标识
     */
    private String nodeName;

    /**
     * 节点类型，主从
     */
    private String nodeType;
    /**
     * 是否是默认
     */
    private String nodeDefault;
    
    /**
     * 关系型数据库连接池配置
     */
    private PoolConfig PoolConfig;
    
    /** 数据源驱动类 */
    private String driverClassName;
    
    /** 数据源继承的父节点配置 */
    private String url;
    
    /** 数据库用户名称 */
    private String username;
    
    /** 数据库密码 */
    private String password;
    
    /**
     * poolConfig
     *
     * @return  the poolConfig
     */
    
    public PoolConfig getPoolConfig() {
        return PoolConfig;
    }
    /**
     * @param poolConfig the poolConfig to set
     */
    public void setPoolConfig(PoolConfig poolConfig) {
        PoolConfig = poolConfig;
    }
    public String getNodeName() {
        return nodeName;
    }
    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }
    public String getNodeType() {
        return nodeType;
    }
    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }
    public String getNodeDefault() {
        return nodeDefault;
    }

    public void setNodeDefault(String nodeDefault) {
        this.nodeDefault = nodeDefault;
    }
    
    
    public String getDriverClassName() {
        return driverClassName;
    }
    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

//    @Override
//    public String toString() {
//        return new StringBuilder().append("BHiveConfig[")
//                .append("driverClassName=").append(driverClassName)
//                .append(", url=").append(url)
//                .append(", username=").append(username)
//                .append(", password=").append(password)
//                .append("]").toString();
//    }

}
